/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 16/05/13
 * Time: 17:08
 * To change this template use File | Settings | File Templates.
 */
function fileSelected() {
    $.ajax({
        url: "/First-EndToEnd/product/success",
        success: function (data) {

            if (data.status) {//there is an image selected
                alert("there is an img")
            } else {
                console.log("no file selected!");
            }
        }
    });


}